package com.ctgu.A1_4.pays;

public class WireTransfer extends Payment{//在线转账（WireTransfer），具有银行ID：bankID，银行名称bankName属性，
    private String bankID;
    private String bankName;

    @Override
    public String toString() {
        return "WireTransfer{" +
                "具有金额='" + super.getAmount() + '\'' +
                ", bankID='" + bankID + '\'' +
                ", bankName='" + bankName + '\'' +
                '}';
    }

    public WireTransfer() {
    }

    public WireTransfer(String bankID, String bankName) {
        this.bankID = bankID;
        this.bankName = bankName;
    }

    public WireTransfer(double amount, String bankID, String bankName) {
        super(amount);
        this.bankID = bankID;
        this.bankName = bankName;
    }

    public String getBankID() {
        return bankID;
    }

    public void setBankID(String bankID) {
        this.bankID = bankID;
    }

    public String getBankName() {
        return bankName;
    }

    public void setBankName(String bankName) {
        this.bankName = bankName;
    }
}
